import req from '@/services/http'

import { ROLELIST,ADDROLE,UPDATE} from '@/config/role'

const model = {
    //角色列表
    roleList(){
        return req.get(ROLELIST)
    },
    //添加角色
    addRole(obj){
        return req.post(ADDROLE,obj)
    },
    //授权
    authRole(obj) {
        return req.post(UPDATE,obj)
    }
}
export default model